package com.hospital.pet.love.lovepethospital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName register
 */
@TableName(value ="register")
@Data
public class Register implements Serializable {
    /**
     * 唯一标识

     */
    @TableId(value = "register_id", type = IdType.AUTO)
    private Integer registerId;

    /**
     * 宠物 id
     */
    @TableField(value = "pet_id")
    private Integer petId;

    /**
     * 挂号时间
     */
    @TableField(value = "order_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime orderDate;

    /**
     * 挂号状态
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 医生 id
     */
    @TableField(value = "doctor_id")
    private Integer doctorId;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}